package net.hn.hnms.biz.material.domain;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * Author: ly
 * 库存信息表
 */
@Data
@NoArgsConstructor
@ExcelIgnoreUnannotated
@EqualsAndHashCode(callSuper = false)
@Table(name = "stock_info")
public class StockInfo implements Serializable {
    @ApiModelProperty(value = "主键ID")
    @TableId(type = IdType.ASSIGN_UUID)
    private String stockId;
    @ApiModelProperty(value = "仓库编号")
    private String stockCode;
    @ApiModelProperty(value = "仓库名称")
    private String stockName;
    @ApiModelProperty(value = "供应站账本号")
    private String supplyLedgerCode;
    @ApiModelProperty(value = "物资编码")
    private String materialCode;
    @ApiModelProperty(value = "物资名称")
    private String materialName;
    @ApiModelProperty(value = "规格型号")
    private String specificationModel;
    @ApiModelProperty(value = "计量单位")
    private String unit;
    @ApiModelProperty(value = "最新价格")
    private BigDecimal newPrice;
    @ApiModelProperty(value = "平均价")
    private BigDecimal averagePrice;
    @ApiModelProperty(value = "数量")
    private Integer quantity;
    @ApiModelProperty(value = "金额")
    private BigDecimal amount;
    @ApiModelProperty(value = "账面数量")
    private Integer bookQuantity;
    @ApiModelProperty(value = "账面金额")
    private BigDecimal carryingAmount;
    @ApiModelProperty(value = "库龄")
    private String storageAge;
    @ApiModelProperty(value = "货位")
    private String goodsPosition;
    @ApiModelProperty(value = "保管员")
    private String depositary;
    @ApiModelProperty(value = "创建时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date createTime;
    @ApiModelProperty(value = "最后修改时间")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH:mm:ss"
    )
    private Date updateTime;
    @ApiModelProperty(value = "删除标识 0正常 1删除")
    private String delFlag;
    @ApiModelProperty(value = "矿编码")
    private String mineCode;
    @ApiModelProperty(value = "矿名称")
    private String mineName;
}









